<template>
	<view class="emptyBox">
		<image class="ming" :src="imgUrlPrefix+'static/images/empty.png'" mode="widthFix"></image>
		<text class="title">{{title || '暂无相关数据'}}</text>
	</view>
</template>

<script>
	import {defineComponent,reactive,toRefs,onMounted} from 'vue'
	export default defineComponent({
		props:{
			title:String
		},
		setup(props,context) {
			const state = reactive({
				imgUrlPrefix:getApp().globalData.imgUrlPrefix,
			})
			
			return {
				...toRefs(state)
			}
		}
		
		
	})
</script>

<style lang="scss" scoped>
	.emptyBox{
		display: flex;
		flex-flow: column;
		box-sizing: border-box;
		width: 100%;
		justify-content: center;
		align-items: center;
		.ming{
			display: block;
			width: 180rpx;
			height: auto;
		}
		.title{
			font-size: 30rpx;
			text-align: center;
			padding: 0;
			color: #999;
		}
	}
</style>